home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
015a
/
dsutil.zip
/
DSUTIL.DOC
< prev
next >
Wrap
Text File
|
1991-08-12
|
49KB
|
1,297 lines
DOS System Utilities
Version 1.0
REFERENCE DOCUMENTATION
Tom R. Donnelly
P.O. Box 3856
San Dimas, CA
91773
Copyright (C) 1991 Tom R. Donnelly. All Rights Reserved.
TABLE OF CONTENTS ...ii
=====================================================================
CONTENTS
LICENSE AGREEMENT........................................ iii
REGISTRATION, PROBLEM REPORTING AND USER SUGGESTIONS..... iv
OVERVIEW................................................. 1
REQUIREMENTS AND INSTALLATION............................ 2
INTERACTIVE HELP PROGRAM (DSUTHELP)...................... 3
PROGRAM OPERATION ...................................... 4
ALTPAUSE .......................................... 4
CDD .......................................... 5
DSKCONFG .......................................... 7
HIDE .......................................... 8
ISDAY .......................................... 10
ISEMS .......................................... 11
MOVE .......................................... 12
NEWCOPY .......................................... 14
POP .......................................... 16
PRTSC .......................................... 17
PUSH .......................................... 18
REBOOT .......................................... 19
REPLY .......................................... 20
RUNAT .......................................... 21
SLEEP .......................................... 22
STAMP .......................................... 23
STUFF .......................................... 24
SYSCONFG .......................................... 25
WIPEOUT .......................................... 26
ACKNOWLEDGEMENTS AND PROGRAM HISTORY..................... 27
REGISTRATION FORM........................................ 28
LICENSE AGREEMENT ...iii
=====================================================================
These programs and the accompanying documentation are the
copyrighted property of Tom R. Donnelly. You are granted a
limited license to use, copy and distribute the programs and
documentation, provided you meet the following conditions.
1. No fee is charged for the use, copying or distribution of the
programs and documentation, except a nominal medium charge
(not to exceed five dollars).
2. The programs are distributed in its original and unmodified
state along with the original and unmodified documentation.
3. The programs are not distributed, in whole or in part, as
part of any commercial product or service without the
express written permission of Tom R. Donnelly.
THIS LICENSE IS EFFECTIVE UNTIL TERMINATED. YOU MAY TERMINATE
THE LICENSE AT ANY TIME BY DESTROYING ALL COPIES OF THE
PROGRAM AND ITS DOCUMENTATION.
YOU MAY NOT USE, COPY, MODIFY OR DISTRIBUTE THE PROGRAMS OR
DOCUMENTATION OR ANY COPY, MODIFICATION OR PORTION OF THE
PROGRAMS OR DOCUMENTATION EXCEPT AS EXPRESSLY PROVIDED FOR IN
THIS LICENSE.
VIOLATION OF ANY LICENSE PROVISION AUTOMATICALLY TERMINATES
YOUR LICENSE AND MAY SUBJECT YOU TO CIVIL AND/OR CRIMINAL
LIABILITY.
THESE PROGRAMS ARE PROVIDED "AS IS" WITH NO WARRANTY OF ANY KIND
EITHER EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO ANY
WARRANTY OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE SUITABILITY, QUALITY AND
PERFORMANCE OF THE PROGRAM IS WITH YOU. IN THE EVENT THAT THE
PROGRAMS SHOULD PROVE TO BE DEFECTIVE YOU ASSUME THE ENTIRE
COST OF ALL NECESSARY SERVICING, REPAIR AND/OR CORRECTION.
IN NO EVENT WILL TOM R. DONNELLY BE LIABLE TO YOU OR ANY OTHER
PARTY FOR ANY DAMAGES, INCLUDING LOST PROFITS AND/OR ANY OTHER
INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
INABILITY TO USE THESE PROGRAMS EVEN IF TOM R. DONNELLY HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
REGISTRATION, PROBLEM REPORTING AND USER SUGGESTIONS ...iv
=====================================================================
These programs are distributed under a concept known as
"shareware." Shareware allows you to use the programs and
determine if they suit your needs before you pay for them.
Instead of directly advertising these programs, which would
require that the price of the software be substantially
higher, the shareware concept allows me to reduce distribution
costs and price the programs accordingly.
After you have determined that the programs meet your needs, I
ask that you register the programs. A product registration
form is provided at the end of this document.
As a registered user, you are entitled to free upgrades and
technical support for a period of one year from the date of
registration. Registered users also will be notified of new
releases and will be entitled to discounts on other products.
Your registration fee will make new developments possible.
Quality software and customer satisfaction are my number one
concerns. If this product is broken, I am interested in fixing
it, if possible. Registered users may submit problem reports to
the address below. For faster problem resolution, contact me on
CompuServe via CompuServe Mail. Please provide your name and
registration number and a description of the problem. You will
be assigned an incident number and will be contacted as soon as
a correction is available.
If you have any suggestions for improvements in this product
or ideas for additional features, I am very interested in
hearing them. Please jot them down and send them to me at the
address below.
Thank you for supporting shareware.
Tom R. Donnelly
P.O. Box 3856
San Dimas, CA 91773
CompuServe ID: 73200,1323
OVERVIEW ....1
=====================================================================
The DOS System Utilities is a collection of various utilities I have
developed over the years to overcome deficiencies in the MS-DOS
operating system. Although this collection is called version 1.0,
many of these utilities have been in use for some time on my system
and various other people's systems.
Some of the functions have found their way into some of the newer DOS
versions. Some functions have been published in packages like
PCTOOLS and the Norton Utilities. Other functions have never been
widely available. This package provides an inexpensive set of tools
that will work uniformly across many DOS versions.
Almost all programs will allow their output to be redirected using
the ">" and "|" redirection characters. Some programs, like REPLY,
use full screen window boxes, therefore are not suitable for
redirection.
In general, the command line option "/?" (without quotes) may be used
to obtain a summary of command line parameters. There is also a help
processor (DSUTHELP) that may be run to browse the utilities and
their functions.
REQUIREMENTS AND INSTALLATION ....2
=====================================================================
Requirements:
------------
DOS System Utilities requires:
An IBM PC, XT, AT, PS/2 or close compatible.
256K of memory recommended. Most utilities will use
substantially less.
MS- or PC-DOS 2.10 or higher.
Installation:
------------
The DOS System Utilities is usually distributed via a self-extracting
archive file. A self-extracting archive is an executable file
containing compressed copies of the individual programs.
If you received your copy of DOS System Utilities on a floppy disk,
follow these instructions for extracting the individual files. This
procedure assumes you are installing from floppy drive A: to a hard
disk C:.
1. Place distribution disk in drive A.
2. Create a directory on the hard disk for the programs.
C:
MD \DSUT
CD \DSUT
3. Copy the distribution disk to the hard disk.
COPY A:*.*
4. Extract the program files.
DSUTIL
5. Erase the archive file, if desired.
ERASE DSUTIL.EXE
If you received your copy of DOS System Utilities by downloading from
a bulletin board, the self-extracting archive should already be on
your hard disk. Follow these instructions for extracting the
individual files.
1. Create a directory on the hard disk for the programs.
C:
MD \DSUT
CD \DSUT
2. Copy the archive file to the new directory.
COPY C:\(download directory)\DSUTIL.EXE
3. Extract the program files.
DSUTIL
4. Erase the archive file, if desired.
ERASE DSUTIL.EXE
Follow the instructions below for running each program. You may
install the utilities to any directory you prefer. It is recommended
that they be placed in their own directory to simplify upgrades and
to prevent confusion.
INTERACTIVE HELP PROGRAM (DSUTHELP) ....3
=====================================================================
You may obtain interactive help information for any utility in the
package by typing:
DSUTHELP topic [/NX][/?]
If you omit "topic", you will initially see the MAIN help screen,
describing overview information about the DOS System Utilities.
Selecting the Topic box (press "T"), will display a list of available
topics on which there is help information.
By specifying a topic on the command line, you will be taken directly
to the help information on the topic specified.
The /NX option (no exploding boxes) may be specified to speed-up
screen output for slower video systems.
Most programs will display their own help if you use the /? option.
For example:
REBOOT /?
DOS System Utilities - Reboot - Version 1.0
Copyright (C) 1991 Tom R. Donnelly All Rights Reserved
Syntax: REBOOT [/W][/C][/NC][/?]
/W Warm reboot (like CTL-ALT-DEL).
/C Cold reboot (like power-on).
/NC No Confirmation if run under DesqView or Windows.
/? Display help message.
PROGRAM OPERATION - ALTPAUSE ....4
=====================================================================
Purpose: Delays a batch file's execution while either the ALT key,
CTRL key or the SHIFT key is pressed.
Batch file Syntax: [d:][path]ALTPAUSE
CONFIG.SYS Syntax: DEVICE=[d:][path]ALTPAUSE.EXE
or
DEVICE=[d:][path]ALTPAUSE.SYS
ALTPAUSE comes in two flavors. If you are running DOS 3.0 or later,
ALTPAUSE.EXE is the only one you'll need. It is a dual-purpose
program that will run as either a driver in your CONFIG.SYS file or
as a normal program in a batch file. If you are running a version of
DOS prior to 3.0 (such as 2.1), you should use ALTPAUSE.SYS in your
CONFIG.SYS file and ALTPAUSE.EXE in your batch files.
The program that allows you to interrupt the execution of a batch
file when either the ALT, SHIFT or CTRL key is held down. This is
useful to read scrolling instructions or messages produced by
CONFIG.SYS drivers or batch files. If no shift key is held, messages
will scroll by at their normal pace.
Releasing the key resumes program execution.
You should include a DEVICE=ALTPAUSE.SYS entry after each device
driver specified in CONFIG.SYS (or at whatever point you wish to
allow the CONFIG.SYS to be paused). In your AUTOEXEC or other batch
files, include the ALTPAUSE command at whatever point you might wish
to allow the batch to be paused.
Remember, your CONFIG.SYS and AUTOEXEC.BAT will proceed normally
UNLESS a shift, ctrl or alt key is held down. Use ALTPAUSE liberally
whereever you think you might want to delay things.
Sample CONFIG.SYS
Buffers=50
Files=30
Device=C:\DOS\HIMEM.SYS
Device=C:\DSUT\ALTPAUSE.SYS
Device=C:\DOS\DRIVER.SYS /D:00 /F:00
Device=C:\DSUT\ALTPAUSE.SYS
Device=C:\DOS\RAMDRIVE.SYS 1500 128 512 /A
Device=C:\DSUT\ALTPAUSE.SYS
Shell=C:\DOS\COMMAND.COM C:\DOS\ /E:450 /P
Sample AUTOEXEC.BAT
@Echo Off
Prompt $p$g
Path C:\BAT;C:\MISC;C:\DSUT;C:\DOS
AltPause
ScSaver On
AltPause
Bells
AltPause
Remind /O/Q
PROGRAM OPERATION - CDD ....5
=====================================================================
Purpose: Change directories without knowing exact directory name.
Syntax: CDD name [/MD][/RD][/NC][/E][/F][/S][/SS][/?]
name Name of directory to change to, make or remove.
/MD Make the specified directory.
/RD Remove the specified directory.
/NC No confirmation when removing a directory containing
files.
/E Allow only exact (not phonetic) match.
/F Change to the directory containing the file named by
"name".
/S Scan disk and rebuild quick-start index.
/SS Suppress scan/rebuild during make or remove.
/? Display help message.
Why CDD instead of DOS CD? The DOS CD command requires the EXACT
name of the directory you wish to change to. CDD will look for a
phonetic match (unless /E is specified). This allows for bad
spelling, typos or abbreviations.
With the /MD option, CDD will not only make the directory, it will
switch to it.
The /RD option is even more useful. It will remove a directory even
if it contains files (unlike the DOS RD command). You will be warned
if the directory to be removed contains files (unless the /NC option
is specified) and given a chance to abort the operation. The /RD
option will erase all files in the directory, all files in any
subdirectories and will remove all subdirectories. Furthermore, the
/RD option will let you remove the current directory by switching you
to a higher level directory before removal.
In order to speed up operations, the /S option will cause the disk
to be scanned and an index of directory names to be built. It is
quicker for CDD to scan its index than to scan the entire hard disk
each time a switch is requested. The index is normally placed in the
root directory of the requested disk. However, you may override this
placement and specify a different place to put the index using the
environment variable CDD.
PROGRAM OPERATION - CDD ....6
=====================================================================
To do this, include the following line in your AUTOEXEC.BAT file:
SET CDD=d:\path
The string "d:\path" should be replaced by the name of a drive and
path to contain your indexes. If you use a RAM disk, this is the
ideal place to put the indexes, since access is extremely quick.
When you override the placement of the index by this method, ALL disk
indexes will be placed in this location.
If you have built a directory index using the /S option, each time
you make a directory (/MD) or remove a directory (/RD) the disk will
be rescanned and the index rebuilt. This is to insure that the index
correctly reflects the current directory structure. However, if you
are making or removing multiple directories, scanning the disk for
each operation can be very time consuming.
The /SS option may be specified along with either the /MD or /RD
option. This will suppress the disk scan that normally follows
making or removing a directory. After you have made or removed the
desired directories, you should run CDD with the /S option to do a
final scan of the disk to insure that the index is correct.
HOW CDD LOCATES DIRECTORIES
---------------------------
CDD uses the current directory as its starting point when searching
for the target directory. If the target is not found when the end of
the directory tree is reached, CDD will wrap to the top and continue
its search.
To instruct CDD to start from the top of the tree, include a leading
backslash on the target directory specification (ie, CDD \SISTIM
instead of CDD SISTIM).
PROGRAM OPERATION - DSKCONFG ....7
=====================================================================
Purpose: Displays disk configuration information.
Syntax: DSKCONFG [d:][/?]
d: Drive whose configuration is to be displayed
/? Display a help message
Upon loading, DSKCONFG will display a screen similar to this:
----------------------------------------------------------
DOS System Utilities - DskConfg - Version 1.0
Copyright (C) 1991 Tom R. Donnelly All Rights Reserved
Allocation information for fixed drive C:
Total bytes per sector: 512
Total sectors per cluster: 4
Total bytes per cluster: 2,048
Total clusters: 16,319
Used clusters: 15,398
Available clusters: 921
Total bytes: 33,421,312 - 31.9M [100.0%]
Used bytes: 31,535,104 - 30.1M [ 94.4%]
Available bytes: 1,886,208 - 1.8M [ 5.6%]
360K backup disks required: 86 (estimated)
1.2M backup disks required: 26 (estimated)
1.4M backup disks required: 21 (estimated)
40M backup tapes required: 1 (estimated)
60M backup tapes required: 1 (estimated)
----------------------------------------------------------
PROGRAM OPERATION - HIDE ....8
=====================================================================
Purpose: Conceals and reveals files (either programs or data files)
from directory listings by setting the "hidden" attribute indicator
in the directory.
Syntax: HIDE filespec [filespec[...]] [/U][/L][/P][/S][/?]
filespec Drive, path and filename to hide or unhide. Drive
and path are optional; the current drive and
directory are used if none are specified.
/U Unhides the files listed. Hidden files matching the
file specification will be changed to normal
displayable files.
/L List file names, but do not hide or unhide files,
matching selection criteria.
/P Prompt for confirmation before changing any files to
hidden or unhidden.
/S Hide/unhide Subdirectory files. For example,
HIDE \MYWORK /S
will hide as the \MYWORK subdirectory's filename. To
unhide a subdirectory, use both options: /U and /S.
/? Display help message.
The are several reasons to hide files. Some of your files may
contain sensitive information that you may want to keep hidden from
casual users. Or, you may want to protect files from accidental
erasure. Hidden files can't be accidentally erased using the DEL or
ERASE command, nor can they be copied with the COPY command.
However, they can be executed (if they are programs) or TYPEd.
You can quickly and easily hide (or unhide) either a single file or a
group of files, and have HIDE prompt you for confirmation before
hiding any file, if you wish.
In addition to concealing files, HIDE allows you to conceal a
directory's name, effectively hiding all the files within that
directory, too. Hiding the name of the directory means that when a
user pulls up a directory listing by typing "DIR," the hidden
directory (or hidden subdirectory) name will not be listed -- and
without a listing it is unlikely a casual user will discover the
files contained within the hidden directory. (Just be sure to
remember the name of the hidden directory so that you can unhide it
later.) You can still change to a hidden directory, if you know the
name.
PROGRAM OPERATION - HIDE ....9
=====================================================================
HIDE may be used within a batch file to allow programs to be
unhidden, executed, then hidden again.
Normal (displayable) files matching the file specification will be
changed to hidden files (unless the /U option is specified).
"Filespec" may contain wild-card characters (* and ?). For example:
HIDE A:\WP\WORD*.*
will hide any files beginning with the 4 characters "word" in the \WP
directory of the disk in drive A.
You can, of course, simply list the files you want hidden, one after
the other (including wild-card groups), up to the DOS command line
limit of 127 characters. For example:
HIDE FILE1.TXT FILE2.LTR *.DOC
will hide these 2 text files and any file with a .DOC extension on
the current directory.
(Note: Under DOS 5.0, it is possible to display a directory listing
that includes even files marked hidden or system. Although you can
see that the file is there, you will not be able to copy it or delete
it however.)
PROGRAM OPERATION - ISDAY ...10
=====================================================================
Purpose: Allows a batch file to determine the day of the week.
Syntax: ISDAY day [day[day[...]]] [/V][/?]
day is a three character day-of-week abbreviation (MON,
TUE, WED, THU, FRI, SAT or SUN). It may be typed in
either upper or lower case.
/V Verbose (display result message).
/? Display help message.
If today is one of the days specified, ISDAY exits with ERRORLEVEL 1.
Otherwise, exits with ERRORLEVEL 0.
The /V option is useful in debugging batch files.
Example batch file:
Echo Off
IsDay Mon
If Errorlevel 1 Goto :Ok
Echo Today is not Monday!
IsDay Wed Fri
If Errorlevel 1 Echo Today is either Wednesday or Friday
Goto :End
:Ok
<whatever>
:End
PROGRAM OPERATION - ISEMS ...11
=====================================================================
Purpose: Allows a batch file to determine if EMS memory is present.
Syntax: ISEMS kb [/?]
kb is the amount of EMS memory required. If the amount of
EMS memory (in kilobytes) specified by kb is available,
ISEMS exits with ERRORLEVEL 1. Otherwise, it exits with
ERRORLEVEL 0.
/? Display help message.
Example batch file:
Echo Off
IsEMS 256
If Errorlevel 1 Goto :Ok
Echo Need 256K of free EMS memory to run
Goto :End
:Ok
<whatever>
:End
PROGRAM OPERATION - MOVE ...12
=====================================================================
Purpose: Moves files between directories in a single command.
MOVE may be run from the DOS command line or from a batch file.
Syntax: MOVE source [dest] [/A:mm-dd-yy][/B:mm-dd-yy][/D:nnn]
[/E][/M][/P][/R][/N][/?]
source Name of source directory and files.
dest Name of destination directory.
/A Move only files with date after mm-dd-yy.
/B Move only files with date before mm-dd-yy.
/D Move only files nnn days old or older.
/E Move only files that also exist in the destination.
(Implies /R option). Other files in the source
directory will be left behind.
/M Move only files with "modify" (archive) bit set.
(That is, MOVE only files that have been changed
since the last backup.)
/P Prompt user for confirmation before performing the
move.
/R Replace duplicate named file in destination. This
prevents accidentally overwriting files with the same
name on the destination directory. In effect, /R
forces MOVE to overwrite destination files with the
same name; MOVE will not do so without an optional
switch like /R or /N (or /E).
/N Replace duplicate named file in destination ONLY IF
file in source is Newer (by date). This option
prevents replacing a newer file with an older (or
same) version.
/? Display help message.
"Source" is the path and filename of a file, group of files, or a
directory. "Source" may be a single filename or directory name, and
may contain wild-card characters (* and ?).
Under DOS 3.0 or later, if the source is a directory name (without a
filename or wildcard character) and the destination doesn't exist,
the directory is simply renamed. For example, to rename the entire
\UTIL directory to a new directory called \UTILITY you would type:
MOVE \UTIL \UTILITY
PROGRAM OPERATION - MOVE ...13
=====================================================================
If the source contains wildcard characters, all files matching the
string will be moved. For example, to move all files with filename
extensions of .DOC from the \DOS directory to the \WP\DOCUMENT
subdirectory, you would type:
MOVE C:\DOS\*.DOC C:\WP\DOCUMENT
Oddities about MOVE
-------------------
Move attempts to use the "extended rename" DOS function, available in
version 2.0 and later. Since this merely modifies the directory
entry for the files selected (and doesn't actually move any data),
the source and destination directories must be located on the same
physical drive. SUBSTituted drives may participate in the MOVE.
(See your DOS manual for more information on the SUBST command.)
If the source and destination are on different physical drives, MOVE
will copy the data contained in the file then delete the input file.
This process takes longer, since all of the file data must be moved
(not merely the directory entry).
Under DOS 3.0 or later, when source and destination both specify
directory names without wildcards or filenames, MOVE assumes you are
trying to "rename" a directory. If the name specified by destination
already exists, the move or rename will fail (there is no option for
replacing existing directories). If you wish to MOVE all files from
one directory to another (and not just rename a directory), use the
wildcard characters (*.*) on the source specification.
PROGRAM OPERATION - NEWCOPY ...14
=====================================================================
Purpose: Copies only those files that are newer than files with the
same name on the destination drive or directory. This is useful to
update a disk or directory.
Syntax: NEWCOPY source dest [/D][/E][/F][/F:nnn][/P][/PE]
[/S][/SORT:[SIZE|DATE|NAME|EXT]
[/TEST][/?]
/D Directory of input file used for output file.
/E Output file must already exist.
/F Force copy operation regardless of dates.
/F:nnn Issue Novell FLAG SRW before then FLAG nnn after
copy.
/P Pause for confirmation before copying.
/PE Pause after error (such as disk full, write error).
/S If dates match, copy if output file size is larger
than the input file size.
/SORT:SIZE Copy multiple files in size sequence.
/SORT:DATE Copy multiple files in date sequence.
/SORT:NAME Copy multiple files in name sequence.
/SORT:EXT Copy multiple files in extension sequence.
/TEST Test mode - don't perform actual copy or flagging.
/? Display help message.
NEWCOPY can speed up copy operations by only copying those files
which are newer. NEWCOPY operates in a non-destructive mode. That
is, the data is copied to a temporary file name. If the copy is
successful, the file to be replaced is erased and the temporary file
is renamed to the output name. A side-effect of this fail-safe
operation is that there must be sufficient free space on the output
device to contain the new file BEFORE the file to be replaced is
erased.
PROGRAM OPERATION - NEWCOPY ...15
=====================================================================
The /D option allows input files to be copied to the corresponding
directory on the output device. For example, the command:
NEWCOPY C:\DOS\*.EXE A: /D
will copy all *.EXE files to the A:\DOS subdirectory.
The /E option will only copy files if the file exists on the output
device.
The /F:nnn option is intended for NEWCOPYing to Novell network disks.
If this option is specified, NEWCOPY will call the FLAG utility to
flag the output file as SRW before copying. After the copy is made,
the FLAG utility is called again to reflag the file as indicated by
the nnn portion of the option. FLAG.EXE must be accessible on the
PATH and nnn must specify a valid flag option.
By using the /PE option, NEWCOPY can be used to copy an entire hard
disk directory to multiple floppy disks. When the /PE option is
used, NEWCOPY will pause upon discovering that the output disk is
full. This will allow you to change to a new floppy and continuing
the copy operation. (NEWCOPY does not split files when a disk is
full. The complete output file will be written to the new disk.)
The /S option can be used to protect against some forms of virus
programs. With /S specified, NEWCOPY will refresh the file when the
dates are the same and the existing output file is larger than the
input file. Some viruses infect files by retaining the original date
but by tacking on their own destructive code. The /S option will
replace the infected file with a clean copy.
PROGRAM OPERATION - POP ...16
=====================================================================
Purpose: Return to a directory saved by PUSH. (See also the PUSH
command below.)
Syntax: POP [noset|clear]
noset Erases the last pushed directory without changing
to that directory.
clear Erase all pushed directories.
The stack of directories is maintained in a disk file called
PUSH_POP.DAT. This file is normally maintained in the root
directory of the current disk. To place this stack on a different
disk (like a RAM disk), include the following line in your
AUTOEXEC.BAT file:
SET STACKPATH=d:\path
The string "d:\path" should be replaced by the name of a drive and
path to contain your directory stack.
Example batch file 1:
Echo Off
Rem Change to UTIL directory
Rem Run MAPMEM utility
Rem Return to original directory
PUSH C:\UTIL
MAPMEM
POP
Example batch file 2:
Echo Off
Rem Change to BATCH directory
Rem If COMP.BAT is here, type it
Rem and return to original directory.
Rem Otherwise, go to UTIL directory
PUSH C:\BATCH
If NOT Exist COMP.BAT Goto :GoToUtil
TYPE COMP.BAT|MORE
Goto :End
:GoToUtil
POP NOSET
PUSH "C:\UTIL"
:End
POP
PROGRAM OPERATION - PRTSC ...17
=====================================================================
Purpose: Enable and disable the print-screen key, either from the
DOS command line or from within a batch file. This is useful to
prevent accidental "screen dumps" if the PrtSc key is pressed.
Syntax: PRTSC [on|off]
on Enable print-screen key.
off Disable print-screen key.
If neither "on" nor "off" is specified, PRTSC displays the status of
the print-screen facility.
PROGRAM OPERATION - PUSH ...18
=====================================================================
Purpose: Save the current directory and change to new directory.
(To return to the saved directory, use the POP command above.)
Syntax: PUSH [dir|"dir"]
dir Name of directory to change to after saving
current directory.
"dir" Save directory name in quotes, but stay in
current directory.
The stack of directories is maintained in a disk file called
PUSH_POP.DAT. This file is normally maintained in the root
directory of the current disk. To place this stack on a different
disk (like a RAM disk), include the following line in your
AUTOEXEC.BAT file:
SET STACKPATH=d:\path
The string "d:\path" should be replaced by the name of a drive and
path to contain your directory stack.
Note: If CDD.EXE is present in a directory on your PATH, PUSH will
utilize the phonetic search capabilities of CDD to locate the
destination directory.
Example batch file 1:
Echo Off
Rem Change to UTIL directory
Rem Run MAPMEM utility
Rem Return to original directory
PUSH C:\UTIL
MAPMEM
POP
Example batch file 2:
Echo Off
Rem Change to BATCH directory
Rem If COMP.BAT is here, type it
Rem and return to original directory.
Rem Otherwise, go to UTIL directory
PUSH C:\BATCH
If NOT Exist COMP.BAT Goto :GoToUtil
TYPE COMP.BAT|MORE
Goto :End
:GoToUtil
POP NOSET
PUSH "C:\UTIL"
:End
POP
PROGRAM OPERATION - REBOOT ...19
=====================================================================
Purpose: Reboot the computer from a batch file (or the command
line).
Syntax: REBOOT [/W][/C][/NC][/?]
/W Warm reboot (like CTL-ALT-DEL).
/C Cold reboot (like power-on).
/NC No Confirmation if run under DesqView or Windows.
/? Display help message.
PROGRAM OPERATION - REPLY ...20
=====================================================================
Purpose: Obtain a reply to a user-specified prompt from within a
batch file. REPLY will optionally accept a default answer to the
prompt if no reply is made in a given time.
Syntax: REPLY [/T:time][/D:Y|N][/O][/?] prompt-text
/T:time Number of seconds after which the default option will
be automatically assumed.
/D:Y Specifies the default answer of YES.
/D:N Specified the default answer of NO.
/O Prompt for OK instead of YES/NO.
/? Display help message.
If options are specified, they must appear before the prompt-text.
There must not be any white-space between options.
Example batch file:
Echo Off
Reply /D:N/T:10 Do you wish to run WordPerfect?
If Errorlevel 1 WP
In the above example, a reply box will be displayed. If no answer is
given within 10 seconds (/T:10), the default answer of NO (/D:N) will
be assumed and WP will not be run.
PROGRAM OPERATION - RUNAT ...21
=====================================================================
Purpose: Schedules a DOS command to execute at a given time of day.
RUNAT accepts any legitimate DOS command, such as a program start up
command or batch file name.
Syntax: RUNAT hh:mm command
hh:mm Clock time-of-day to run command.
command Command-string to be run.
Any valid DOS command or batch file may be run using this program.
PROGRAM OPERATION - SLEEP ...22
=====================================================================
Purpose: Delays a batch file's execution for a specified time. This
is useful to allow a user time to read an on- screen message, take an
action, etc.
Syntax: SLEEP n {HR|MIN|SEC} [/K[/D]][/?]
n Number of hours, minutes or seconds to sleep.
/K Wakeup if key pressed and exit with errorlevel 1.
/D Discard key pressed to wakeup (valid only with /K).
/? Display help message.
Example batch file:
Echo Off
REM Delay batch for 1 hour, then start-up COMM program
Sleep 1 HR
COMM
REM After it terminates, wait for a keypress.
REM If there is no keypress, assume were unattended and
REM run the backup. Otherwise, exit the batch.
Sleep 30 SEC /K/D
If Errorlevel 1 Goto :End
BACKUP
PROGRAM OPERATION - STAMP ...23
=====================================================================
Purpose: Change the a file's time and/or date stamps.
Syntax: STAMP filespec [/D:mm-dd-yy][/T:hh-mm-ss][/P][/?]
filespec is the name of the file(s) to be changed. The
filespec may include wildcards.
/D:mm-dd-yy Set date of selected files.
(Use /D:TODAY to set files to today's date)
/T:hh-mm-ss Set time of selected files.
(Use /T:NOW to set files to current time)
/P Pause for confirmation before acting.
/? Display help message.
PROGRAM OPERATION - STUFF ...24
=====================================================================
Purpose: Place keys in the type-ahead buffer as if typed at the
keyboard.
Syntax: STUFF string
The string on the command line following the STUFF command is placed
the keyboard type-ahead buffer as if typed. Control characters may
be specified by entering the decimal value of the key and preceeding
it with a back-slash character (eg, \13 to indicate RETURN).
The total length of the string to be stuffed cannot exceed 15
characters.
Example batch file:
Echo Off
Rem Stuff a file name and a CR in the type-ahead buffer.
Rem Run the program which asks for the file name.
STUFF MYNAME.DOC\13
FILEPRNT
PROGRAM OPERATION - SYSCONFG ...25
=====================================================================
Purpose: Displays the system's configuration information.
Syntax: SYSCONFG [/P][/?]
/P Pause after displaying configuration. This can be
useful when SYSCONFG is run in a batch file to
prevent the screen from disappearing too quickly.
/? Display help message.
Upon loading, SYSCONFG will display a screen similar to this:
----------------------------------------------------------
DOS System Utilities - SysConfg - Version 1.0
Copyright (C) 1991 Tom R. Donnelly All Rights Reserved
Machine-id (FCh) indicates this is an IBM PC/AT or compatible.
Main processor is an Intel 80386.
DOS Version 5.0 - ROM BIOS dated 01/15/88
640 KB of conventional memory installed - 603 KB available.
0 KB of extended memory installed - 0 KB available (XMS driver present)
1600 KB of EMS memory installed - 1200 KB available.
Video Graphics Array (VGA) supported.
Enhanced Graphics Adapter (EGA) supported.
Color/Graphics Display Adapter supported (mode 3=CO80).
1 Hard disk drive.
2 Floppy diskette drives.
1 Parallel port.
3 RS-232 serial ports.
2 Joysticks on Game Adapter.
Mouse-compatible pointing device (Unknown type code: 0, 2 button, MCA)
Mouse driver is version 0.2.
PROGRAM OPERATION - WIPEOUT ...26
=====================================================================
Purpose: Overwrites file information and deletes the file.
Syntax: WIPEOUT filename [/NC][/ND][/DOD][/?]
/NC No confirmation required before wiping file.
/ND No deletion of file (just wipe the data).
/DOD Use Department of Defense wiping standard.
/? Display help message.
When a file is erased or deleted using the DOS commands ERASE or DEL,
the data is not actually destroyed. The file can be recovered using
programs such as Norton Utilities' Quick Unerase or the UNDELETE
program supplied with MS-DOS 5.0.
If a file contains sensitive information, it may be desirable to
remove all traces of the information, not merely the directory entry.
WIPEOUT will overwrite each byte of the file with binary zeros
(nulls), then (unless the /ND option is specified) delete the file
from the directory. This will render the file impossible to recover
with all but the most specialized equipment.
When the /DOD option is specified, the standard described by the
United States Department of Defense is used to wipe-out the file.
This consists of overwriting each byte with hex FF, then hex 00.
This is repeated three times, then a final pass is made overwriting
the file with hex F6. Finally, the file is verified to insure that
the hex F6 was written.
As you can see, using the /DOD option will substantially increase the
time required to wipe-out a file. Use this option only if you need
to wipe-out extremely sensitive data (or if you happen to have acute
paranoia).
ACKNOWLEDGEMENTS AND PROGRAM HISTORY ...27
=====================================================================
Thanks to Barry MacDonnell for his help with the documentation and
his always constructive suggestions.
Special thanks to Dixie Swanson for her proof-reading, beta testing
and moral support.
Norton Utilities is registered trademark of Symantec Corporation.
PCTOOLS is a registered trademark of Central Point Software.
Microsoft and MS-DOS are registered trademarks of Microsoft
Corporation.
Windows is a trademark of Microsoft Corporation.
DesqView and QEMM are trademarks of Quarterdeck Office Systems.
PC/AT, PC-DOS, PC/XT and PS/2 are trademarks of the International
Business Machines Corporation.
WordPerfect is a registered trademark of WordPerfect Corporation.
Netware and Novell are registered trademarks of Novell, Inc.
LHA and LHA's SFX are Copyright (C) Haruyasu Yoshizaki, 1988-91
PROGRAM HISTORY
===============
Version 1.0 - First public release
REGISTRATION FORM ...28
=====================================================================
INDIVIDUAL REGISTRATION AND SITE LICENSE FORM
=============================================
DOS System Utilities Version 1.0
License fee: 1 copy - $20.00
6-25 copies - $100.00
26-50 copies - $200.00
51-100 copies - $400.00
Unlimited copies - $500.00
Date: ____/____/____
Contact Name: ________________________________________
Company Name: ________________________________________
Address: ________________________________________
City: ____________________ State: ____ Zip: __________
Telephone: (______) _________________ Ext: _______
Compuserve ID: _____________
Make of Computer: ___________________ Amount of RAM: _______
Size of Floppy Disk: [ ] 5.25" [ ] 3.5"
Number of copies: _____ Amount enclosed: ______
TERMS: No credit cards or CODs, please.
Make checks payable to: Tom R. Donnelly
Checks drawn on a U.S. bank in U.S. funds.
International bank or postal money orders in U.S. funds.
Please attach your check and mail to:
Tom R. Donnelly
P.O. Box 3856
San Dimas, CA 91773
THANK YOU FOR SUPPORTING SHAREWARE.